Skip to content

Feature/claude hooks protocol#16

Open
vaibhavpareek-vp7 wants to merge 2 commits into
workindia:mainfrom
vaibhavpareek-vp7:feature/claude-hooks-protocol
Open

Feature/claude hooks protocol#16
vaibhavpareek-vp7 wants to merge 2 commits into
workindia:mainfrom
vaibhavpareek-vp7:feature/claude-hooks-protocol

Conversation

@vaibhavpareek-vp7

Copy link
Copy Markdown
Contributor

No description provided.

vaibhavpareek-vp7 and others added 2 commits July 3, 2026 11:43
…ement

Introduces a new protocol type alongside the existing file_sync type.
When a config repo defines a claude_hooks protocol, devctl will:
  1. Copy non-yaml files from the source dir to ~/.devctl/hooks/ (hook scripts)
  2. Merge the 'hooks' section from source/hooks.yaml into ~/.claude/settings.json
  3. Remove the 'hooks' key from settings.json if hooks.yaml is absent (clean uninstall)

This lets teams centrally manage Claude Code hooks (e.g. skill usage tracking)
via a config repo. Developers get hooks installed/updated automatically on every
devctl ai-kit sync — no per-developer setup needed.

11 new tests, all existing tests pass (67 total).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaced capture_output with stdout=subprocess.DEVNULL for both git pull and git clone commands to suppress output. Added --progress flag to the git clone command for better visibility during cloning operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant